package org.feifei.pay.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.feifei.basic.domain.BaseDomain;

import javax.jws.HandlerChain;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 实体类 支付单 PayBill
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Getter
@Setter
@EqualsAndHashCode
public class PayBill extends BaseDomain {

    @ApiModelProperty("摘要")
    private String digest;
    @ApiModelProperty("订单金额")
    private BigDecimal money;
    @ApiModelProperty("支付编码")
    private String unionPaySn;
    @ApiModelProperty("状态码 -1取消支付 0未支付 1已支付")
    private Integer state = 0; // 0 表示待支付
    @ApiModelProperty("支付时间")
    private Date lastPayTime;
    @ApiModelProperty("支付方式")
    private Long payChannel; //0 余额 1 支付宝 2 微信 3 银联
    @ApiModelProperty("该调单是那种类型")
    private String businessType;
    @ApiModelProperty("该订单类型关联的订单的主键")
    private Long businessKey;
    @ApiModelProperty("修改时间")
    private Date updateTime;
    @ApiModelProperty("创建时间")
    private Date createTime = new Date();
    @ApiModelProperty("用户id")
    private Long user_id;
    @ApiModelProperty("店铺id")
    private Long shop_id;
    @ApiModelProperty("用户昵称")
    private String nickName;

}
